package com.zhao.blog.dao;

import com.zhao.blog.pojo.Tag;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;


import java.util.List;

/**
 * @author xiaoZhao
 * @date 2022/1/6
 * @describe
 */
public interface TagDao extends JpaRepository<Tag,Long> {

    @Query("select t from t_tag t")
    List<Tag> findTop(Pageable pageable);
}
